package com.dog.basics.bean.dto.admin.sys;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * <p>
 * 系统配置信息表
 * </p>
 *
 * @author guoy
 * @since 2020-03-19
 */
@Data

public class SysConfigAddDto implements Serializable {


    /**
     * key
     */
    @NotBlank(message = "key不能为空")
    @Size(max = 20, message = "ke最大长度为20")
    @ApiModelProperty(value = "key值", dataType = "String", required = true)
    private String code;


    /**
     * value
     */
    @NotBlank(message = "value不能为空")
    @Size(max = 200, message = "value最大长度为200")
    @ApiModelProperty(value = "value值", dataType = "String", required = true)
    private String value;

    /**
     * 备注
     */
    @Size(max = 500, message = "名称最大长度为500")
    @ApiModelProperty(value = "名称", dataType = "String", required = false)
    private String name;


}
